package io.sage.modules.statistics.service.impl;

import java.util.Date;
import java.util.List;
import java.util.Map;

import io.sage.modules.statistics.vo.BStatisVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import io.sage.modules.statistics.dao.BStatisticsPmTenMapper;
import io.sage.modules.statistics.entity.BStatisticsPmTen;
import io.sage.modules.statistics.service.BStatisticsPmTenService;

/**
 * 传感器PM10服务
 * @author xjh
 *
 */
@Service("statisticsPmTenService")
public class BStatisticsPmTenServiceImpl implements BStatisticsPmTenService {

	@Autowired
	private BStatisticsPmTenMapper statisticsPmTenMapper;

	@Override
	public BStatisticsPmTen selectById(Integer id) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void deleteBatchIds(List<Integer> asList) {
		// TODO Auto-generated method stub

	}

	@Override
	public List<BStatisticsPmTen> selectStatisticsPmTenList(Map<String, Object> params) {
		// TODO Auto-generated method stub
		return statisticsPmTenMapper.selectStatisticsPmTenList(params);
	}

	@Override
	public int insert(BStatisticsPmTen statisticsPmTen) {
		statisticsPmTen.setCreateTime(new Date());
		statisticsPmTen.setIsDeleted(0);
		statisticsPmTen.setIsUsed(1);
		return statisticsPmTenMapper.insertSelective(statisticsPmTen);
	}

	@Override
	public int savePmTenList(List<BStatisticsPmTen> list) {
		// TODO Auto-generated method stub
		return statisticsPmTenMapper.savePmTenList(list);
	}

	@Override
	public List<BStatisVo> selectListByWarehouseId(Map params) {
		return statisticsPmTenMapper.selectListByWarehouseId(params);
	}

}
